package model;

import javax.microedition.lcdui.Graphics;

public abstract class MyObj{
	public String m_strName = "";
	public int m_iId;
	
	public abstract MyObj clone();
	public abstract void paint(Graphics g);
	public abstract void paintIcon(Graphics g, int x, int y);
	public abstract void paintInRow(Graphics g, int x, int y, int width, int height, boolean isFocus);
	public abstract void paintInfo(Graphics g, int x, int y);

    public boolean equals(Object obj) {
        if (obj == null) {
            return false;
        }
        if (getClass() != obj.getClass()) {
            return false;
        }
        final MyObj other = (MyObj) obj;
        if (this.m_iId != other.m_iId) {
            return false;
        }
        return true;
    }

    public int hashCode() {
        int hash = 7;
        return hash;
    }
        
        
	
}
